package com.pan.note.im.controller;


import com.pan.note.im.service.SnakeDataProcessService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("test")
    public void test(String player1,String player2){
        SnakeDataProcessService.startGame(player1,player2);
    }

    @GetMapping("test1")
    public void test1(String player,String dir){
        SnakeDataProcessService.playerDir.put(player,dir);
    }
}
